C code for PEOpenPrintJob and PEClosePrintJob

The following code is an example of how to open a new print job with PEOpenPrintJob, then close the print job with PEClosePrintJob:

Note:    PEOpenPrintJob returns the job handle. This value is implied in all other sample code appearing in this Help file.

    short     Job;
char     *reportFile;
lstrcpy(reportFile, "c:\crw\myreport.rpt");
Job = PEOpenPrintJob(reportFile);
if (Job <= 0){
    // Handle error
}
if (!PEClosePrintJob(Job)){
    // Handle error
}


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com